﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PolYol : MonoBehaviour
{

    private void OnCollisionEnter2D(Collision2D coll)
    {
        if (coll.collider.transform.position.x < this.transform.position.x)
        {
            SceneManager.LoadScene("Game");
        }
    }
}
